#!/usr/bin/env python3
import random
#random.randint(1,100)
def js():
    conut = 0
    de = random.randint(0,1)
    t = random.randint(1,100)
    dic1 = {t:0}
    day = 0
    while conut < 99 or dic1[t] == 0 :
        day += 1
        t2 = random.randint(1,100)
        if t2 == t :
            dic1[t] += 1
            if de == 1 :
                de = 0
                conut += 1
        else:
            if t2 in dic1 :
                if dic1[t2] == 1 :
                    if de == 0 :
                        de = 1
                        dic1[t2] += 1
            else:
                dic1[t2] = 1
        #print(day,t2,t,dic1[t])
    return day

list1 = []
su = 0
for i in range(0,100,1):
    list1.append(js())
    su += list1[i]
su = su - max(list1) - min(list1)
su = su /(len(list1)-2)
print(su/365,"年")